package com.med.service.Impl;

import com.med.entity.AddressDO;
import com.med.mapper.AddressMapper;
import com.med.service.AddressService;
import com.med.vo.AddressVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service

public class AddressServiceImpl implements AddressService {
    @Autowired
    private AddressMapper addressMapper;
    @Override
    public List<AddressDO> queryAddressMessage(AddressVO addressVO) {
        return addressMapper.queryAddressMessage(addressVO);
    }

    @Override
    public Integer insertAddress(AddressVO addressVO) {
        return addressMapper.insertAddress(addressVO);
    }

    @Override
    public Integer deleteAddress(AddressVO addressVO) {
        return addressMapper.deleteAddress(addressVO);
    }

    @Override
    public Integer updateAddress(AddressVO addressVO) {
        return addressMapper.updateAddress(addressVO);
    }

    @Override
    public List<AddressDO> queryOneAddress(AddressVO addressVO) {
        return addressMapper.queryOneAddress(addressVO);
    }
}
